package com.cgc.venus.server.core.utils;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * Created by xiaobin on 2017/9/21.
 */
public class appearNumber {
    public static int appearNumber(String srcText, String findText) {
        int count = 0;
        Pattern p = Pattern.compile(findText);
        Matcher m = p.matcher(srcText);
        while (m.find()) {
            count++;
        }
        return count;


    }
}
